package com.fuluwa.application;

/**
 * 
 * @author leasenli
 * 
 */
public interface ErrConstant {

	/*************************************** 操作成功 ***********************************************/
	public static final int SUCCESS = 0;

	/*************************************** 参数校验出错 ********************************************/
	public static final int ERRCODE_INVALID_PARAMETER = 0x0100; // 参数校验不合法

	/*************************************** 接口类错误码 ********************************************/
	public static final int ERRCODE_INTERFACE_HTTP = 0x0200; // HTTP接口失败 0x0200
																// ~ 0x021f

	/*************************************** DAO调用过程相关异常编码 **********************************/
	public static final int ERRCODE_DAO_NULLSESSION = 0x0300; // 无法取得Sql Session

	/*************************************** 公共错误编码 *********************************************/
	public static final int ERRCODE_CFG_NOT_FOUND = 0x0401; // 从配置中心处没有获取回对应的数据
	public static final int ERRCODE_ACTION_UNKNOW_EXP = 0x0402; // 在Action处捕获到未知的Exception
	public static final int ERRCODE_JSON_FORMAT = 0x0403; // json格式转换错误

	/*************************************** 在线支付 0x1200 *******************************************/
	public static final int ERRCODE_TENPAY_HTTP_POST_FAIL = 0x1200; // 财付通http协议出现异常
	public static final int ERRCODE_TENPAY_BUILD_INIT_PARAMS_FAIL = 0x1201; // 拼接财付通init参数失败
	public static final int ERRCODE_TENPAY_BUILD_GATE_PARAMS_FAIL = 0x1202; // 拼接财付通gate参数失败
	public static final int ERRCODE_TENPAY_GETTOKEN_FAIL = 0x1203; // 解析财付通回包获取不到tokenId
	public static final int ERRCODE_TENPAY_SIGN_VERIFY_FAIL = 0x1204; // 财付通参数的MD5校验失败
	public static final int ERRCODE_TENPAY_NOTFINDSIGNKEY = 0x1205; // 没有找到MD5签名的Key
	public static final int ERRCODE_TENPAY_PAIPAIDEAL_INVALID = 0x1206; // 拍拍订单数据不符合要求
	public static final int ERRCODE_TENPAY_CALLBACK_MD5_FAIL = 0x1207; // callback回调参数MD5校验sign失败
	public static final int ERRCODE_TENPAY_NOTIFYPARAM_TRANS_FAIL = 0x1208; // notify回调参数转调PC同步状态参数失败
	public static final int ERRCODE_TENPAY_NOTIFY5TIMES_FAIL = 0x1209; // notify回调PC侧5次还是失败
	public static final int ERRCODE_TENPAY_SELLER_NOCONFIG_SPID = 0x1210; // 卖家没有配置相应的spid
	public static final int ERRCODE_TENPAY_NOTIFY_ATTACH_INVALID = 0x1211; // notify返回的Attach字段有问题

	/************************************** 统一支付 **********************************************/
	public static final int ERRCODE_UNIPAY_HTTP_POST_FAIL = 0x1600; // 统一支付http协议出现异常
	public static final int ERRCODE_UNIPAY_RESULT_NULL = 0x1601; // 统一支付返回空对象
	public static final int ERRCODE_UNIPAY_CALLBACK_MD5_FAIL = 0x1602; // callback回调参数MD5校验sign失败
	public static final int ERRCODE_UNIPAY_NOTIFYPARAM_TRANS_FAIL = 0x1603; // notify回调参数转调PC同步状态参数失败
	public static final int ERRCODE_UNIPAY_PARAMETER_CAN_NOT_BE_NULL = 0x1604;
	public static final int ERRCODE_UNIPAY_RESULT_ERROR = 0x1605;
	public static final int ERRCODE_MINIPAY_CALLBACK_MD5_FAIL = 0x1606; // callback回调参数MD5校验sign失败
}
